package com.example.library_common.album.ui;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.ViewGroup;
import android.view.Window;

import androidx.annotation.NonNull;

import com.example.library_common.R;
import com.example.library_common.utils.StatusBar;

public class AlbumDialog extends Dialog {
    public AlbumDialog(@NonNull Context context) {
        this(context, R.style.AlbumPresent);
    }

    public AlbumDialog(@NonNull Context context, int themeResId) {
        super(context, R.style.AlbumPresent);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Window window = getWindow();
        if (window != null) {
            window.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
            StatusBar.fitSystemBar(this, true);
        }
    }
}
